package com.denlaku.longan.controller;

import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author tianx
 */
@RequestMapping("/image/resource")
public interface ImageResourceController {
    /**
     * 获取图片
     *
     * @param tenantId 租户ID
     * @param id 图片ID
     * @param response 响应对象
     */
    @RequestMapping("/{tenantId}/{id}")
    void image(@PathVariable("tenantId") Long tenantId, @PathVariable("id") Long id,
            HttpServletResponse response);

}
